import request from './request'
const V1 = 'api/web/v1/'

export default {
    /**
     * 用户登陆接口
     * @param {*} postData = {
     *  userName,
     *  password
     * };
     */
    userLogin(postData) {
      return request.post(V1 + 'authority/public/login', postData)
    },
    // 获取车间列表
    getAreaList(page, limit, searchVal) {
        const params = {
          page,
          limit,
          searchVal
        }
        return request.get(V1 + 'basicdata/private/area', params)
    }
}
  